function uploadbrand() {

      $('#uploadbrand').submit();
      alert('上传成功！');
      getallbrand();


}



function getallbrand() {
    $.ajax({
      url: 'http://172.18.21.150/ToGo/listBrandAll',
      type: 'post',
      dataType: 'json',
      success:function (result) {
          if(result.status=='200'){
            var data=result.data;
            $('#mid-brand').html('');
            for(var i=0;i<data.length;i++){
              $('#mid-brand').append('<li><img src="http://172.18.21.150/'+data[i].logo+'" alt="" width="75px" height="60px"/><p><a href="../admin/admin-model.html?brand_id='+data[i].brand_id+'">'+data[i].brand_name+'</a></p></li>');
            }
          }
      },
      error:function () {
        alert('error');
      }
    });
}